package net.onceface.core.mongo;

import java.io.Serializable;
import java.util.Date;
import java.util.Map;

import org.springframework.data.mongodb.core.mapping.Document;
@Document(collection = "DeliveryMSG") 
public class DeliveryMSG implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -5486138663492456113L;
	
	private int msgType; //消息类型。1为“私有消息”，2为“群发消息”
	
	private int userId; //用户ID
	
	private String msg; //推送内容
	
	private int msgCode; //推送内容代号。9为“有新的快递订单！”
	
	private Map<String, String> cpMap; //对应操作参数
	
	private Date createdate;
	
	private Date startTime; //开始时间
	
	private Date expireTime; //过期时间

	public int getMsgType() {
		return msgType;
	}

	public void setMsgType(int msgType) {
		this.msgType = msgType;
	}

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public int getMsgCode() {
		return msgCode;
	}

	public void setMsgCode(int msgCode) {
		this.msgCode = msgCode;
	}

	public Map<String, String> getCpMap() {
		return cpMap;
	}

	public void setCpMap(Map<String, String> cpMap) {
		this.cpMap = cpMap;
	}

	public Date getCreatedate() {
		return createdate;
	}

	public void setCreatedate(Date createdate) {
		this.createdate = createdate;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getExpireTime() {
		return expireTime;
	}

	public void setExpireTime(Date expireTime) {
		this.expireTime = expireTime;
	}
	
}
